#ifndef KPLAZER_MAINWINDOW_H
#define KPLAZER_MAINWINDOW_H

#include <QMainWindow>
#include <QSystemTrayIcon>

class QLabel;

class MainWindow : public QMainWindow
{
	Q_OBJECT
	public:
		MainWindow();
		
	protected:
		void closeEvent(QCloseEvent *event);
		
	private:
		void createTrayIcon();
		void createActions();
		void createStatusBar();
		void writeSettings();
		void readSettings();
		
		QSystemTrayIcon *trayIcon;
		QMenu *trayIconMenu;
		QAction *minimizeAction;
		QAction *restoreAction;
		QAction *quitAction;
		
	private slots:
		void setIcon(bool online);
		void iconActivated(QSystemTrayIcon::ActivationReason reason);
};

#endif
